package com.ruibang.glass.sale.controller;


import com.ruibang.glass.sale.domain.req.GSaleOrderReq;
import com.ruibang.glass.sale.service.GSaleOrderManagementService;
import com.teaming.cloud.framework2.common.model.ResultBody;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author mameng
 */
@Api(tags = "多发货订单统计")
@RestController
@RequestMapping("/api/glass/sale/multi/delivery")
public class GSaleMultiDeliveryController {
    @Autowired
    private GSaleOrderManagementService gSaleOrderManagementService;

    @PostMapping("list")
    @ApiOperation(value = "订单管理列表", response = ResultBody.class)
    public ResultBody list(@RequestBody GSaleOrderReq gSaleOrderReq) {
        return ResultBody.success(gSaleOrderManagementService.getPage(gSaleOrderReq));
    }


}
